package com.lmscn.lms.api.model;

import com.jfinal.plugin.activerecord.Model;

/**
 * Created by Czl on 2015/9/12.
 */
@SuppressWarnings("serial")
public class FeedBack extends Model<FeedBack> {

    public static final FeedBack dao = new FeedBack();

    /**
     * 保存意见反馈
     * @param feedBack
     * @param info
     * @param contact
     */
    public void saveFeed(FeedBack feedBack,String info,String contact){
        feedBack.set("info",info);
        feedBack.set("contact",contact);
        feedBack.remove("id").save();
    }
}
